﻿<%@ Page Language="C#" MasterPageFile="~/provider/TravelInsurance/TravelInsurance.master"
    AutoEventWireup="true" CodeFile="ProviderTIAge.aspx.cs" Inherits="Provider_TravelInsurance_ProviderTIAge" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="provider_inner">
        <h1>
            Age Eligibility
        </h1>
        <fieldset>
            <legend>Plan details</legend>
            <dl>
                <dt>
                    <label>
                        Type of Policy</label></dt>
                <dd>
                     <asp:DropDownList ID="ddlPolicyType" runat="server" class="text" Width="150px" Enabled="false" OnSelectedIndexChanged="CheckAgeEligibility">
                        <asp:ListItem Selected="True" Value="-1">Select</asp:ListItem>
                        <asp:ListItem Value="Individual">Individual</asp:ListItem>
                        <asp:ListItem Value="IndividualSpouse">Individual + Spouse</asp:ListItem>
                        <asp:ListItem Value="IndividualChild">Individual + Child</asp:ListItem>
                        <asp:ListItem Value="Family">Family</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rfvPolicyType" runat="server" ErrorMessage="Select Type of Policy" ControlToValidate="ddlPolicyType" 
                        InitialValue="-1"></asp:RequiredFieldValidator>
                </dd>
            </dl>              
            <%--<dl>
                <dt>
                    <label>
                        Coverage Level</label></dt>
                <dd>
                       <asp:DropDownList ID="ddlLevelOfCoverage" runat="server" class="text" Width="250px" AutoPostBack="true" OnSelectedIndexChanged="CheckAgeEligibility">
                        <asp:ListItem Selected="True" Value="-1">Select</asp:ListItem>
                        <asp:ListItem Value="STD">Standard Cover</asp:ListItem>
                        <asp:ListItem Value="MED">Medium Cover</asp:ListItem>
                        <asp:ListItem Value="HGH">High Cover</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rfvLevelOfCoverage" runat="server" ErrorMessage="Select Coverage Level"
                        ControlToValidate="ddlLevelOfCoverage" InitialValue="-1"></asp:RequiredFieldValidator>
                </dd>
            </dl>--%>
             <dl>
                <dt>
                    <label>
                        Plan Name</label></dt>
                <dd>
                    <asp:Label ID="lblPlanName" runat="server"></asp:Label><asp:Label ID="lblTAAgeId"
                        runat="server" Text="0" Visible="false"></asp:Label><asp:Label ID="lblTAId" runat="server"
                            Text="0" Visible="false"></asp:Label>
                </dd>
            </dl>
            <legend>General Age Eligibility</legend>
            <dl>
                <dt>
                    <label>
                        From Age</label></dt>
                <dd>
                    <asp:TextBox ID="txtAdultAgeFrom" runat="server" Width="50px" MaxLength="2" Text="0"></asp:TextBox>years
                    <asp:RequiredFieldValidator ID="rfvAdultAgeFrom" runat="server" ControlToValidate="txtAdultAgeFrom"
                        ErrorMessage="Enter adult age from"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revAdultAgeFrom" runat="server" ControlToValidate="txtAdultAgeFrom"
                        ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        To Age</label></dt>
                <dd>
                    <asp:TextBox ID="txtAdultAgeTo" runat="server" Width="50px" MaxLength="2" Text="0"></asp:TextBox>years
                    <asp:RequiredFieldValidator ID="rfvAdultAgeTo" runat="server" ControlToValidate="txtAdultAgeTo"
                        ErrorMessage="Enter adult age to"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revAdultAgeTo" runat="server" ControlToValidate="txtAdultAgeTo"
                        ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <legend>Accompanying child or children</legend>
            <dl>
                <dt>
                    <label>
                        From Age</label></dt>
                <dd>
                    <asp:TextBox ID="txtChildAgeFrom" runat="server" Width="50px" MaxLength="2" Text="0"></asp:TextBox>years
                    <asp:RequiredFieldValidator ID="rfvChildAgeFrom" runat="server" ControlToValidate="txtChildAgeFrom"
                        ErrorMessage="Enter child age from"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revChildAgeFrom" runat="server" ControlToValidate="txtChildAgeFrom"
                        ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        To Age</label></dt>
                <dd>
                    <asp:TextBox ID="txtChildAgeTo" runat="server" Width="50px" MaxLength="2" Text="0"></asp:TextBox>years
                    <asp:RequiredFieldValidator ID="rfvChildAgeTo" runat="server" ControlToValidate="txtChildAgeTo"
                        ErrorMessage="Enter child age to"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revtChildAgeTo" runat="server" ControlToValidate="txtChildAgeTo"
                        ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Auth Code</label></dt>
                <dd>
                    <asp:TextBox ID="txtAuthCode" runat="server" TextMode="Password" MaxLength="12" Width="150px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvAuthCode" runat="server" ControlToValidate="txtAuthCode"
                        ErrorMessage="Enter auth code." ></asp:RequiredFieldValidator>
                </dd>
            </dl>
        </fieldset>
        <fieldset class="action">
            <asp:ImageButton OnClientClick="javascript:return confirm('Are you sure to go back?');"
                ID="ibtBack" runat="server" CssClass="left_btn" ImageUrl="~/Provider/images/buttons/back1.gif"
                OnClick="ibtBack_Click" />
            <asp:ImageButton ID="ibtSubmit" runat="server" CssClass="float_btn" ImageUrl="~/Provider/images/buttons/submit1.gif"
                OnClick="ibtSubmit_Click" />
        </fieldset>
        <asp:Label ID="lblMessage" runat="server" CssClass="successmsg"></asp:Label>
    </div>
</asp:Content>
